import { ajax } from 'nc-lightapp-front';

export default function AccsoaAction(key,value,moduleId,index) {
    debugger
    let postData = {
        pk:value.pk_accasoa
    };
    let _that = this;
    return ajax({
        url: '/nccloud/gl/AssIOBill/AccasoaAction.do',
        data: postData,
        success: function (res) {  
            // 最后的设置的值未确定
            if(key == 'pk_assoa_in'){
                index.values.code.value = res.data.code;
                index.values.name.value = res.data.name;
                index.values.accassname.value = res.data.accassname;
            }else{
                index.values.outcode.value = res.data.code;
                index.values.outname.value = res.data.name;
                index.values.outaccassname.value = res.data.accassname;
            }
        }});
}
